import request from '@/utils/request'

/*
 * 用户信息
 */

// 请假记录
export function leaveIndex(params) {
  return request({
    url: 'leave_student/index',
    method: 'GET',
    params
  })
}

// 删除请假记录
export function leaveDelete(data) {
  return request({
    url: 'leave_student/delete',
    method: 'POST',
    data:data
  })
}

// 删除请假记录
export function leaveSign(data) {
  return request({
    url: 'leave_student/sign',
    method: 'POST',
    data:data
  })
}

// 因病缺勤报备
export function leaveStudentSick(data) {
  return request({
    url: 'leave_student/handle',
    method: 'POST',
    data:data
  })
}
